<template>
  <el-select v-model="selected">
    <el-option
      v-for="item in options"
      :key="item.id"
      :label="item.role_name"
      :value="item.id"
    ></el-option>
  </el-select>
</template>

<script>
export default {
  props: ["value"],
  data() {
    return {
      selected: this.value,
    };
  },
  async created() {
    let response = await this.$http.get("/api/manager/GetRoleList");
    this.options = response.data.Data;
  },
};
</script>

<style></style>
